import request from '@/utils/request'

// 查询借阅信息数据列表
export function listArchiveBorrowData(query) {
  return request({
    url: '/archive/archiveBorrowData/list',
    method: 'get',
    params: query
  })
}

// 查询借阅信息数据详细
export function getArchiveBorrowData(id) {
  return request({
    url: '/archive/archiveBorrowData/' + id,
    method: 'get'
  })
}

// 新增借阅信息数据
export function addArchiveBorrowData(data) {
  return request({
    url: '/archive/archiveBorrowData',
    method: 'post',
    data: data
  })
}

// 修改借阅信息数据
export function updateArchiveBorrowData(data) {
  return request({
    url: '/archive/archiveBorrowData',
    method: 'put',
    data: data
  })
}

// 删除借阅信息数据
export function delArchiveBorrowData(id) {
  return request({
    url: '/archive/archiveBorrowData/' + id,
    method: 'delete'
  })
}
